import {RESPONSE_VALUE} from "~/resource/constants/common/constant";
import type {ResponseResult} from "~~/server/resources/types/response-result";

export const useResponseResult = (responseResult: ResponseResult<any>): boolean => {
    return RESPONSE_VALUE === responseResult.code;
}